import { createApp } from 'vue'
import { Toast } from 'vant';
import App from './App.vue'
import router from './router/router'
import axios from './axios/axiosInstance'
import 'amfe-flexible' // 引入后会自动根据屏幕宽度计算rem
import 'vant/lib/index.css'
import { showToast } from 'vant'
import 'vant/lib/toast/style';
import {createPinia} from "pinia";
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'



const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)


app.use(pinia)
app.use(pinia.use(piniaPluginPersistedstate))
app.use(showToast)
app.use(Toast)
app.use(router)
app.config.globalProperties.$axios=axios;//全局配置axios
app.mount('#app')
